<!DOCTYPE html>
<html>

<head>
    <title>育宝|业务平台</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no;">
    <link rel="stylesheet" href="__PUBLIC__/Sale/style.css">
    <script src="__PUBLIC__/Sale/jquery.js"></script>
    <style>
        @media screen and (max-width: 576px) {
            .wrapper {
                width: inherit;
            }

            .login-desc {
                width: 100%;
            }

            .login-desc img {
                object-fit: contain;
                width: 95%;
            }

            .login-header {
                width: inherit;
                padding: 20px;
            }

            .login-header img {
                width: 150px;
                object-fit: contain;
            }

            .login-main {
                height: inherit;
            }

            .login-main img {
                width: 100%;
                left: 0;
                object-fit: cover;
                margin-left: 0;
                height: 385px;
            }

            .login-main form {
                margin: 0 auto;
                margin-top: 120px;
            }

            .login-desc {
                padding-top: 20px;
            }

            .login-main .form-item {
                margin-bottom: 10px;
            }

            .login-main .form-item input {
                font-size: 14px;
            }

            .login-main .form-hock {
                margin-top: 0;
            }
        }
    </style>
</head>

<body>

    <div class="wrapper login-header">
        <a href="{:U('Index/index')}"><img src="__PUBLIC__/Sale/imgs/logo.png" /></a>
    </div>
    <div class="login-main">
        <img src="__PUBLIC__/Sale/imgs/main_bg.png" />
        <div class="wrapper">
            <form onsubmit="return false;">
                <div class="form-item">
                    <input type="text" name="phone" class="form-item-w" placeholder="请输入电话号码" required />
                </div>
                <div class="form-item" id="desce">&nbsp;</div>
                <div class="form-item">
                    <input type="submit" value="&nbsp;" class="form-item-w form-item-sub2" onclick="getsmscode();" />
                </div>
            </form>
        </div>
    </div>
    <div class="wrapper login-desc"><img src="__PUBLIC__/Sale/imgs/login-desc.png" /></div>
    <div class="login-cont">
        <div class='login-cont-tit'>联系我们</div>
        <div class='login-cont-con'>
            电话：400-1181712<br>
            客服邮箱：serve@yyb21.com<br>
            育宝技术服务咨询QQ：2774872511<br>
            公司短信接收号:106902331071812<br>
            客服咨询QQ:2897641499
        </div>
        业务经营许可证编号：京ICP备13032030号
    </div>
    <script>
        function getsmscode() {
            var phone = $("input[name=phone]").val();
            if (phone.length == 0 || phone.length != 11) {
                $("#desce").html("电话号码格式错误");
                return false;
            }
            $.post("{:U('Index/getstartpas')}", {
                phone: phone
            }, function(res) {
                res == 10 ? $("#desce").html("没有这个账号!") : null;
                res == 9 ? $("#desce").html("您已经有密码了,无法获取初始密码!") : null;
                res == 8 ? $("#desce").html("获取失败,请稍后再试!") : null;
                res == 1 ? $("#desce").html("已发送到您的手机!") : null;
                res == 0 ? $("#desce").html("获取失败,请稍后再试!") : null;
            });
        }
    </script>
</body>

</html>
